package Chapter07.Homework.H20211022.Work06;

public class Pet {
    private String name;
    private String brand;
    private float weight;

    public void eat(){
        System.out.println("吃");
    }

    public void sleep(){
        System.out.println("睡");
    }

    public void show01(){
        System.out.println("狗的名字"+name+",品种"+brand+",体重"+weight);
    }

    public void show02(){
        System.out.println("猫的名字"+name+",品种"+brand+",体重"+weight);
    }

    public void show03(){
        System.out.println("鹦鹉的名字"+name+",品种"+brand+",体重"+weight);
    }

    public Pet() {
    }

    public Pet(String name, String brand, float weight) {
        this.name = name;
        this.brand = brand;
        this.weight = weight;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public float getWeight() {
        return weight;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }
}
